var commonModule = angular.module('commonModule');

commonModule.directive('fullpage', function() {
	return {
	    restrict: 'A',
	    replace: true,
	    link: function(scope, elem, attrs) {
	        $(elem).fullpage({
	        	slidesNavigation:false,
			});

			$(elem).mousewheel(function(event, delta) {
                if(delta > 0) {
                	// up
                	$.fn.fullpage.moveSlideLeft();
                } else if(delta < 0) {
                	// down
                	$.fn.fullpage.moveSlideRight();
                }
            });
	    }

	};
});
